package pack.soldierboom;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.graphics.Color;
import android.graphics.Paint;


public class Bomba extends View implements Runnable
{

	long time = 1;
	float cx;
	float cy;
	float radius;
    GameView gameView;
	
	Paint paint;

	public Bomba(Context context,GameView gameView)
	{
		super(context);
		
		this.gameView = gameView;
		this.radius = 20;
		this.paint = new Paint();
		this.paint.setColor(Color.BLACK);

		setFocusableInTouchMode(true);
		setClickable(true);
		setLongClickable(true);

		Thread thread = new Thread(this);
		thread.start();

	}

	public void run()
	{
		while (true)
		{
			try 
			{
				Thread.sleep(time);
			}
			catch (InterruptedException e) 
			{
				Log.e(Main.TAG, "interrupcao do run()");
			}
			update();
			postInvalidate();
		}

	}

	private void update() 
	{
		
	}
}



